home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / langs / cc68x.zoo / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-18  |  773 b   |  34 lines

  1. #include <stdlib.h>
  2.  
  3. #ifndef __PROTO
  4. #  ifdef __STDC__
  5. #    define __PROTO(x)    x
  6. #  else
  7. #    define __PROTO(x)    ()
  8. #  endif
  9. #endif
  10.  
  11. typedef struct {
  12.   int nargs;
  13.   int arg_spc;
  14.   const char **_args;
  15. } Arguments;
  16. #define args(A)        ((A)->_args)
  17.  
  18. /* run.c */
  19. void add_args __PROTO((Arguments *, const char * const *));
  20. void add_arg __PROTO((Arguments *, const char *));
  21. void remove_args __PROTO((Arguments *, int));
  22. void run __PROTO((Arguments *, char const * const *));
  23.  
  24. /* utils.c */
  25. void *mallok __PROTO((size_t));
  26. void *reallok __PROTO((void *, size_t));
  27. void error __PROTO((const char *, ...));
  28. void fatal __PROTO((const char *, ...));
  29. void bugchk __PROTO((const char *, ...));
  30.  
  31. /* main.c */
  32. extern char *argv0;
  33. extern int verbose, action;
  34.